# coding=utf8
import os


PATH = ""
ENVIRON = ""

PATH_TEMP = PATH + "/" + "temp"
PATH_LOG = PATH_TEMP + "/" + "log"
PATH_EXEC = PATH_TEMP + "/" + "exec"
PATH_TIMING = PATH_TEMP + "/" + "timing"

FILENAME_CONFIG = "config.cfg"

if not os.path.exists(PATH_TEMP):
    os.makedirs(PATH_TEMP)

if not os.path.exists(PATH_LOG):
    os.makedirs(PATH_LOG)

if not os.path.exists(PATH_EXEC):
    os.makedirs(PATH_EXEC)

if not os.path.exists(PATH_TIMING):
    os.makedirs(PATH_TIMING)

SERVICE_TITLE = ""

DINGDINGROBOT_URL = "https://oapi.dingtalk.com/robot/send?access_token=57a83006015690b4cc454ad890c9213e528d4d0a4cdbefc7802505aa4324f30c"
DINGDINGROBOT_URL_PROXY = "https://oapi.dingtalk.com/robot/send?access_token=57a83006015690b4cc454ad890c9213e528d4d0a4cdbefc7802505aa4324f30c"

ONLINE_REDIS_HOST = "47.95.226.174"
ONLINE_REDIS_PORT = 16379

LOCAL_REDIS_HOST = "localhost"
LOCAL_REDIS_PORT = 6379

ONLINE_SPIDER_REDIS_NODE = {"host": ONLINE_REDIS_HOST, "port": ONLINE_REDIS_PORT, "db": 0}
LOCAL_SPIDER_REDIS_NODE = {"host": LOCAL_REDIS_HOST, "port": LOCAL_REDIS_PORT, "db": 0}
